package cn.tmall.cmm;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import cn.tmall.BaseRepositoryFactoryBean;
/**
 * @author YANG
 */
@SpringBootApplication
@EnableJpaRepositories(basePackages = {"cn.tmall.dao.*"},repositoryFactoryBeanClass = BaseRepositoryFactoryBean.class)
@EntityScan(basePackages = "cn.tmall.entity")
@EnableJpaAuditing
@EnableDubbo(scanBasePackages = {"cn.tmall.cmm.impl"})
//@PropertySource("classpath:dubbo-provider.properties")
public class SoaShopCmmApplication {

    public static void main(String[] args) {
        SpringApplication.run(SoaShopCmmApplication.class, args);
    }

}
